package com.googlecode.garbagecan.cxfstudy.jaxrs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

@Path(value = "/customer")
public interface CustomerService {
	@GET
	@Path(value = "/{id}/info")
	@Produces(MediaType.APPLICATION_JSON)
	Customer findCustomerById(@PathParam("id")String id);
	
	@GET
	@Path(value = "/{id}/name")
	@Produces(MediaType.APPLICATION_JSON)
	String getCustomerNameById(@PathParam("id")String name);
	
	@GET
	@Path(value = "/search")
	@Produces(MediaType.APPLICATION_JSON)
	Customer findCustomerByName(@QueryParam("name")String name);

}
